/* 销售明细页面样式 */
.sales-details-page {
  padding: 1rem;
  background: #fff;
}

/* 头部组件 */
.sales-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 30;
  text-decoration: none;
  color: #666;
  font-size: 2.5rem;
  font-weight: bold;
  padding: 1rem;
  background: none;
  border: none;
  box-shadow: none;
}

.back-btn:hover {
  color: #333;
}

.sales-header .header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

/* 月份显示 */
.month-display {
  margin-bottom: 2rem;
  text-align: center;
}

.month-display h2 {
  font-size: 1.25rem;
  color: #333;
  font-weight: 500;
}

/* 表格区域 */
.sales-table {
  background: #ffeb3b;
  padding: 1rem;
  border-radius: 8px;
}

.sales-table table {
  width: 100%;
  border-collapse: collapse;
}

.sales-table th,
.sales-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.sales-table th {
  background: #f5f5f5;
  font-weight: 500;
  color: #333;
}

.sales-table td {
  color: #333;
}


/* 搜索区域 */
.search-area {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.date-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.search-btn:hover {
  background: #0056b3;
}

/* 表格样式 */
.sales-table {
  overflow-x: auto;
}

.sales-table table {
  width: 100%;
  border-collapse: collapse;
}

.sales-table th,
.sales-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.sales-table th {
  background: #f5f5f5;
  font-weight: 500;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination button {
  background: none;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-area {
    flex-direction: column;
  }
  
  .date-range {
    flex-direction: column;
    align-items: flex-start;
  }
}
